package com.hongye.common.enu;

/**
 * @author fyd
 * @email 2104371759@qq.com
 * @date 2022/4/13
 * @time 9:50
 */
public enum ResultEnum {

    //成功
    SUCCESS(true,2000,"成功"),
    ERROR(false,5000,"失败");

    private Boolean success;
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 提示消息
     */
    private String message;

    ResultEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    ResultEnum() {
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
